package people.paper.tv.receiver.vc;

import android.content.Context;

import people.paper.tv.activity.home.HomeActivity;

/**
 * Created by Gwen on 2018/5/16.
 */

public class VoiceControllerProcessor {
    //    开心动画片	29
    //    快了早教	30
    //    名师请回家	31
    //    世界杯盛宴	32
    //    纵览世界杯	33
    //    世界杯全知道	34
    //        618好物领券折上折	35
    //        618家电狂欢购	36
    //        618居家好物节	37

//    private static final int SIGN_IN = 24;
//    private static final int GO_GAME = 26; // 投注

    //    private static final int START_EDU_1 = 29;
    //    private static final int START_EDU_2 = 30;
    //    private static final int START_EDU_3 = 31;
    //    private static final int START_WC_1 = 32;
    //    private static final int START_WC_2 = 33;
    //    private static final int START_WC_3 = 34;
    //    private static final int START_618_1 = 35;
    //    private static final int START_618_2 = 36;
    //    private static final int START_618_3 = 37;


    private static final int YWYL_INDEX = 40;
    private static final int RMRB_INDEX = 39;
    private static final int YDTJ_INDEX = 42;
    private static final int SPTT_INDEX = 41;


    public static final void process(Context context, String message) {
        VoiceCmd cmd = VoiceCmd.parse(message);
        process(context, cmd.command);
    }

    public static final void process(Context context, int index) {
        switch (index) {
            case YWYL_INDEX:
                HomeActivity.start(context, HomeActivity.YWYL_INDEX);
                break;
            case RMRB_INDEX:
                HomeActivity.start(context, HomeActivity.RMRB_INDEX);
                break;
            case YDTJ_INDEX:
                HomeActivity.start(context, HomeActivity.YDTJ_INDEX);
                break;
            case SPTT_INDEX:
                HomeActivity.start(context, HomeActivity.SPTT_INDEX);
                break;
            default:
                break;
        }
    }
}
